package com.shelpe.services.sinbad.repository.jpa;

import java.util.Date;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.shelpe.services.sinbad.entity.jpa.RptKeywordAnalysis;
import com.shelpe.services.sinbad.entity.jpa.RptKeywordAnalysis.RptKeywordAnalysisPK;

public interface RptKeywordAnalysisRepository
		extends PagingAndSortingRepository<RptKeywordAnalysis, RptKeywordAnalysisPK> {

	Page<RptKeywordAnalysis> findByUserIDAndSourceAndCreateTimeAfterOrderByCreateTimeDesc(long userID, int source,
			Date date, Pageable page);

	Page<RptKeywordAnalysis> findByUserIDAndKeywordstrLikeAndSourceAndCreateTimeAfterOrderByCreateTimeDesc(long userID,
			String keyword, int source, Date date, Pageable page);
}
